import axios from 'axios';
import qs from 'qs'
const myaxios=axios.create({
    baseURL:'https://www.fastmock.site/mock/099670b44d319c13e4b122db5972df06/test',
   timeout:6000
})
myaxios.interceptors.request.use((config)=>{
    config.data=qs.stringify(config.data)
    return config
})

myaxios.interceptors.response.use((res)=>{
    return res.data
})
export default myaxios